/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.yixiang.co
 * 注意：
 * 本软件为www.yixiang.co开发研制
 */
package co.yixiang.modules.shop.service.dto;

import co.yixiang.modules.shop.domain.YxStoreProductAttrValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hupeng
 * @date 2020-05-12
 */
@Data
public class YxStoreCartDto implements Serializable {

    /**
     * 购物车表ID
     */
    @ApiModelProperty(value = "购物车表ID")
    private Long id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long uid;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型 product产品")
    private String type;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID")
    private Long productId;

    /**
     * 商品SKU ID
     */
    @ApiModelProperty(value = "商品SKU ID")
    @NotNull
    private Long skuId;


    @ApiModelProperty(value = "该商品的sku信息")
    private YxStoreProductAttrValue sku;

    /**
     * 商品属性
     */
    @ApiModelProperty(value = "商品属性")
    private String productAttrUnique;

    /**
     * 商品数量
     */
    @ApiModelProperty(value = "加入购物车的该商品数量")
    private Integer cartNum;

    /**
     * 0 = 未购买 1 = 已购买
     */
    @ApiModelProperty(value = "0 = 未购买 1 = 已购买")
    private Integer isPay;

    /**
     * 是否勾选了 0不是 1是
     */
    @ApiModelProperty(value = "是否勾选了 0不是 1是")
    private Integer isNew;

    /**
     * 拼团id
     */
    @ApiModelProperty(value = "拼团id")
    private Long combinationId;

    /**
     * 秒杀产品ID
     */
    @ApiModelProperty(value = "秒杀产品ID")
    private Long seckillId;

    /**
     * 砍价id
     */
    @ApiModelProperty(value = "砍价id")
    private Long bargainId;
    /*门店ID*/
    @ApiModelProperty(value = "门店ID")
    private Long storeId;
    /*运费方案*/
    @ApiModelProperty(value = "运费方案")
    private ExpressPlanDto expressPlanDto;
    /*运费细节*/
    @ApiModelProperty(value = "运费细节")
    private ExpressPlanDetailDto expressPlanDetailDto;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal storePrice;

    @ApiModelProperty(value = "商品总价")
    private BigDecimal totalPrice;





}
